<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">
$(function(){
	$("#deleteTest").click(function(){
		if(confirm("삭제하시겠습니까?") ){	
			location.href="removeTest.do?no=${requestScope.tvo.no}";
		}//confirm
	});//click
});//function
</script>
<h2>Test 수정</h2>
<form method="get" action="updateTest.do" >
문제번호: ${requestScope.tvo.no}
<input type="hidden" name="no" value="${requestScope.tvo.no}">
등급
<select name="grade"   >
	<option value="${requestScope.tvo.grade}" >현재등급 ${requestScope.tvo.grade}</option>
	<option value="1">1등급</option>
	<option value="2">2등급</option>
	<option value="3">3등급</option>
	<option value="4">4등급</option>
	<option value="5">5등급</option>
</select><br>
question:<textarea rows="5" cols="80" name="question">${requestScope.tvo.question}</textarea><br>
예제: 
<input type="text" name="example1" value="${requestScope.tvo.example1}">
<input type="text" name="example2" value="${requestScope.tvo.example2}">
<input type="text" name="example3" value="${requestScope.tvo.example3}">
<input type="text" name="example4" value="${requestScope.tvo.example4}"><br>
정답:<input type="text" name="answer" value="${requestScope.tvo.answer}"><br>
<input type="submit" value="수정완료">
<input type="button" value="삭제" id="deleteTest">
</form>
